﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Ausy.Servey.AccountProvider.Contract
{
    /// <summary>
    /// Cette classe représente un compte utilisateur
    /// </summary>
    [DataContract]
    public class Account
    {
        #region Identifier Property
        /// <summary>
        /// Identifiant du compte
        /// </summary>
        [DataMember]
        public Guid Identifier { get; set; } 

        #endregion

        #region LastName Property

        /// <summary>
        /// Property lastName
        /// </summary>
        private string lastName;

        /// <summary>
        /// Property lastName
        /// </summary>
        [DataMember]
        public string LastName
        {
            get { return this.lastName; }
            set { this.lastName = value; }
        }

        #endregion

        #region FirstName Property

        /// <summary>
        /// Property name
        /// </summary>
        private string firstname;

        /// <summary>
        /// Property Name
        /// </summary>
        [DataMember]
        public string FirstName
        {
            get { return this.firstname; }
            set { this.firstname = value; }
        }

        #endregion
        
        #region Email Property
        /// <summary>
        /// Property email
        /// </summary>
        private string email;

        /// <summary>
        /// Property Email
        /// </summary>
        [DataMember]
        public string Email
        {
            get { return this.email; }
            set { this.email = value; }
        }

        #endregion

        #region Phone Property

        /// <summary>
        /// Property name
        /// </summary>
        private string phone;

        /// <summary>
        /// Property Name
        /// </summary>
        [DataMember]
        public string Phone
        {
            get { return this.phone; }
            set { this.phone = value; }
        }

        #endregion

        #region Function Property

        /// <summary>
        /// Property name
        /// </summary>
        private string function;

        /// <summary>
        /// Property Name
        /// </summary>
        [DataMember]
        public string Function
        {
            get { return this.function; }
            set { this.function = value; }
        }

        #endregion

        #region CompanyName Property

        /// <summary>
        /// Property name
        /// </summary>
        private string companyName;

        /// <summary>
        /// Property Name
        /// </summary>
        [DataMember]
        public string CompanyName
        {
            get { return this.companyName; }
            set { this.companyName = value; }
        }

        #endregion

        #region Experience Property

        /// <summary>
        /// Property name
        /// </summary>
        private string experience;

        /// <summary>
        /// Property Name
        /// </summary>
        [DataMember]
        public string Experience
        {
            get { return this.experience; }
            set { this.experience = value; }
        }

        #endregion

        #region Constructeur

        /// <summary>
        /// Constructeur par défaut
        /// </summary>
        public Account()
        {
            this.Identifier = Guid.Empty;
            this.lastName = string.Empty;
            this.phone = string.Empty;
            this.email = string.Empty;
            this.function = string.Empty;
            this.companyName = string.Empty;
            this.experience = string.Empty;            
        }

        #endregion
    }
}
